import _axios from '@/littleu/plugin/axios'
class Brand {
  async getBrandsByCondition (condtion) {
    return _axios({
      method: 'post',
      url: '/brand/where',
      data: condtion
    })
  }

  async getBrandDetail (id) {
    return _axios({
      method: 'get',
      url: '/brand/' + id
    })
  }

  async getBrandCategories (id) {
    return _axios({
      method: 'get',
      url: `/brand/${id}/category/`
    })
  }

  async getBrandCategoryDetail (id) {
    return _axios({
      method: 'get',
      url: `/brand/category/${id}`
    })
  }

  async getTips (id) {
    return _axios({
      method: 'get',
      url: `/brand/tips/${id}`
    })
  }
}

export default new Brand()
